package vin.pth.authorization.config;

import java.io.Serializable;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * 认证的自动配置文件.
 *
 * @author cocoon
 */
@ConfigurationProperties("cocoon-security.authorization")
@Validated
@Data
public class AuthorizationProperties implements Serializable {

  /**
   * 是否启用授权.
   */
  private boolean enable = true;

  /**
   * 登录路径.
   */
  private String loginUri = "/login";

}
